<?php

include ("../include/config.php");
require($config['basedir']."/admin/classes/action.class.php");
$post =   $_REQUEST ;

$obj_ac 	=  new Action();			
$_action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view';

switch($_action)
{
		case 'addNewUser':
			$obj_ac->addUser($post);
		break;	
		case 'getCategories': 
			$obj_ac->getCategoriesXML($post);
		break;
		case 'getQuestions':
			$obj_ac->getQuestions($post);
		break;
		case 'submitTrivia':
			$obj_ac->submitTrivia($post);
		break;
		case 'updateUser':
			$obj_ac->updateUser($post);
		break;
		
		case 'submitQuestions':
			$obj_ac->submitQuestions($post);
		break;
		
		case 'questionByUser':
			$obj_ac->questionByUser($post);
		break;
		
		case 'issueByUser':
			$obj_ac->issueByUser($post);
		break;
		
		case 'ideaByUser':
			$obj_ac->ideaByUser($post);
		break;
		
		case 'getUserInfo':
			$obj_ac->getUserInfo($post);
		break;
	
		case 'saveImageToServer':
			$obj_ac->saveImageToServer($post);
		break;
		
		case 'getToDayBanner':
			$obj_ac->getToDayBanner($post);
		break;
		
		case 'getTopScorerByCategory':
			$obj_ac->getTopScorerByCategory($post);
		break;
		
		case 'getLatestIssues':
			$obj_ac->getLatestIssues();
		break;
		
		case 'mostCommonIssues':
			$obj_ac->mostCommonIssues();
		break;
		
		case 'getLatestIdeas':
			$obj_ac->getLatestIdeas();
		break;
		
		case 'mostCommonIdeas':
			$obj_ac->mostCommonIdeas();
		break;
		
		case 'getLatestQuestionByUsers':
			$obj_ac->getLatestQuestionByUsers();
		break;
		
		case 'mostCommonQuestionByUsers':
			$obj_ac->mostCommonQuestionByUsers();
		break;
		
}		
?>
